package cn.sh.yhk.configure.scheduling;

import org.springframework.stereotype.Component;

import java.time.LocalTime;

/**
 * 代码写死定时任务
 * 代码配置定时任务
 */
@Component
public class Task {

    //@Scheduled(cron = "0 0 12 * * ? ")
    public void job1() {
        System.out.println(Thread.currentThread() + ", Task0@" + LocalTime.now());
    }
}
